﻿using Demo.OrderManager;
using Demo.Permissions;
using Demo.ProductManager;
using Demo.Store.Application.Contracts;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Application;
using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity;

namespace Demo.Store.Application;

[DependsOn(typeof(AbpDddApplicationModule))]
[DependsOn(typeof(DemoStoreApplicationContractsModule))]
[DependsOn(typeof(OrderManagerHttpApiClientModule),typeof(ProductManagerHttpApiClientModule))]
[DependsOn(typeof(AbpAutoMapperModule))]
[DependsOn(typeof(DemoPermissionsModule))]
public class DemoStoreApplicationModule:AbpModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        context.Services.AddAutoMapperObjectMapper<DemoStoreApplicationModule>();
        Configure<AbpAutoMapperOptions>(options =>
        {
            options.AddMaps<DemoStoreApplicationModule>(validate: false);
        });
    }
}